package com.dotflat.physicalevaluate.repository;

import com.dotflat.physicalevaluate.domain.pe.Dimension;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface DimensionRepository extends JpaRepository<Dimension, String>, JpaSpecificationExecutor<Dimension> {

    Dimension getByNameAndProject(String name, String project);

    Dimension getTop1ByProject(String project);
    Dimension getTop1ByName(String name);

}